22. Receive a Notification

Receive a Notification

Now it’s your turn to send a notification to the FriendlyChat app.
(*Make sure that the app is in the background before sending the notification)

SOLUTION:
  • 1. Add the gradle dependency for messaging
  • 2. Go to the Notifications tab in the Firebase Console.
  • 3. Create your own message to send as a notification.
  • 4. Send the notification*.
  • 5. See the notification on your Android device.